<template>
  <div class="layout">
      <!-- 二级路由出口 -->
      <router-view></router-view>
      <!-- 底部栏 -->
    <van-tabbar v-model="active" active-color="#ee0a24" route placeholder class="footer">
      <van-tabbar-item to="/company" icon="wap-home-o">公司</van-tabbar-item>
      <van-tabbar-item to="/exercise" icon="records">刷题</van-tabbar-item>
      <van-tabbar-item to="/find" icon="search">发现</van-tabbar-item>
      <van-tabbar-item to="/mine" icon="user-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'layout',
  data () {
    return {
        
      active: 0
    }
  }
}
</script>

<style lang="less">
// .layout{
//  .footer{
//    position: fixed;
//    height: 50px;
//    line-height: 50px;
//  } 
// }
</style>
